package com.xy.service;

import com.xy.dao.BookDao;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Service;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/4/7 14:05
 * @description
 */

@Service
public class BookService {
    @Autowired(required = false)
    private BookDao bookDao;

    @Test
    public void print() {
        System.out.println("bookDao = " + bookDao);
    }
}
